﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Gurucore.Framework.Core;

namespace Gurucore.Framework.Business
{
	public class ServiceLocator
	{
		public static T Locate<T>(params object[] p_arrParam)
		{
			ServiceFactory oSvcFactory = Application.GetInstance().GetGlobalSharedObject<ServiceFactory>();
			return (T)oSvcFactory.GetImplementation(typeof(T), p_arrParam);
		}
	}
}
